package com.xiaohu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaohu.entity.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TableMapper extends BaseMapper<Table> {
    @Select("SELECT *  FROM information_schema.TABLES WHERE TABLE_SCHEMA = #{schema} and TABLE_NAME = #{tableName}")
    Table getTableData(@Param("schema") String schema, @Param("tableName") String tableName);
}
